package cn.gson.oasys.services.process.impl;

import cn.gson.oasys.model.dao.processdao.ProcessListDao;
import cn.gson.oasys.model.entity.process.ProcessList;
import cn.gson.oasys.services.process.ProcessService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;
import java.util.List;

@Service
@Transactional
public class ProcessServiceImpl implements ProcessService {

    @Autowired
    private ProcessListDao prodao;

    //记日志
    Logger log = LoggerFactory.getLogger(getClass());

    //根据用户id获取最近的流程列表信息
    @Override
    public List<ProcessList> findlastthree(Long userId) {
        return prodao.findlastthree(userId);
    }
}
